package com.tsxy.mall.service.impl;

import com.tsxy.mall.entity.UsedBook;
import com.tsxy.mall.mapper.UsedBookMapper;
import com.tsxy.mall.service.UsedBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UsedBookServiceImpl implements UsedBookService {
    @Autowired
    private UsedBookMapper usedBookMapper;
    @Override
    public List getAll() {
        return usedBookMapper.getAll();
    }

    @Override
    public UsedBook getById(Integer id) {
        return usedBookMapper.getById(id);
    }
}
